package net.oschina.simpleplus.kits;

import java.util.HashMap;
import java.util.Map;

public class MapKit {

	public static Map<String, Object> buildSuccMap(){
		Map<String, Object> m = new HashMap<>();
		m.put("code", 0);
		return m;
	}

	public static Map<String, Object> buildErrorMap(int code, String msg){
		Map<String, Object> m = new HashMap<>();
		m.put("code", code);
		m.put("msg", msg);
		return m;
	}
}
